<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:web="http://www.web.com.br/jsf/webutils">


	<!--

    TAG ATTRIBUTES:

		id
		label
        fieldMode
        required
        value
        mask
        size
        converterMessage
        maxlength

     -->

	<web:field label="#{label}" for="#{id}" mode="#{web:nvl(fieldMode, 1)}"
		required="#{web:nvl(required, false)}" addMessage="true">

		<p:inputMask id="#{id}Text" value="#{value}"
			required="#{web:nvl(required, false)}" mask="#{mask}" maxlength="#{web:nvl(maxlength, 100)}"
			style="width: #{width};" converterMessage="#{converterMessage}">

			<ui:insert />

		</p:inputMask>

	</web:field>

</ui:composition>

